package com.todo.pro.shiro;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;

import com.todo.pro.entity.SystemUser;

public class SubjectUtil {
	public static Subject getSubject() {
		return SecurityUtils.getSubject();
	}

	public static SystemUser getPrincipal() {
		return (SystemUser) getSubject().getPrincipal();
	}
}
